package com.gitee.l0km.codegen.generic;

import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException;

import com.gitee.l0km.codegen.base.generator.GeneratorConfiguration;

public class GenericInferfaceConfiguration extends GeneratorConfiguration{

	private Class<?> refClass;
	private Class<?> interfaceClass;
	private Class<?> shellInterface;

	@Override
	public void loadConfig(Options options, CommandLine cmd) throws ParseException {
		super.loadConfig(options, cmd);
		interfaceClass = getProperty(INTERFACE_CLASS_OPTION_LONG);
		refClass = getProperty(REFERENCE_CLASS_OPTION_LONG);
		shellInterface = getProperty(SHELL_INTERFACE_OPTION_LONG);
	}


	/**
	 * @return refClass
	 */
	public Class<?> getRefClass() {
		return refClass;
	}

	/**
	 * @return interfaceClass
	 */
	public Class<?> getInterfaceClass() {
		return interfaceClass;
	}


	/**
	 * @return shellInterface
	 */
	public Class<?> getShellInterface() {
		return shellInterface;
	}
}
